
#include "stdio.h"
#include "stdlib.h"
#include "string.h"

#include "Node.h"


void init(NODE *node, char *_data)
{
	node->data = (char*)malloc(strlen(_data));
	memset(node->data, 0, strlen(_data));
	strcpy(node->data, _data);
}

void destructor(NODE *node)
{
	free(node->data);
}

void NODEfuncInit(NODE *node)
{
	node->init = init;
	node->destructor = destructor;
}